import 'package:json_annotation/json_annotation.dart';

part 'activity_create_request.g.dart';


@JsonSerializable()
class ActivityCreateRequest extends Object {

  @JsonKey(name: 'address')
  String address;

  @JsonKey(name: 'aim')
  String aim;

  ///先不传，默认为0
  @JsonKey(name: 'company_id')
  int companyId;

  @JsonKey(name: 'cost')
  String cost;

  ///先不传，默认为0
  @JsonKey(name: 'cost_type')
  int costType;

  ///先不传，默认为0
  @JsonKey(name: 'deadline')
  int deadline;

  @JsonKey(name: 'description')
  String description;

  @JsonKey(name: 'end_time')
  int endTime;

  ///集体活动 研讨会 读书会 交友会 宣讲会 演讲会
  @JsonKey(name: 'form')
  int form;

  ///兴趣id
  @JsonKey(name: 'group_id')
  int groupId;

  ///填写的问题
  @JsonKey(name: 'question')
  String question;

  ///先不传，默认为0
  @JsonKey(name: 'has_coursefile')
  int hasCourseFile;

  @JsonKey(name: 'is_online')
  int isOnline;

  @JsonKey(name: 'limit_people')
  int limitPeople;

  ///经度,纬度
  @JsonKey(name: 'location')
  String location;

  ///上传的图片网络地址
  @JsonKey(name: 'logo')
  String logo;

  ///是否需要审核，先不传，默认为0
  @JsonKey(name: 'needcheck')
  int needcheck;

  ///通知类型，先不传，默认为0
  @JsonKey(name: 'notify_config')
  String notifyConfig;

  ///小圈的id
  @JsonKey(name: 'small_group_id')
  int smallGroupId;

  @JsonKey(name: 'start_time')
  int startTime;

  ///1为招募活动，2为兴趣活动
  @JsonKey(name: 'type')
  int type;

  @JsonKey(name: 'user_id')
  int userId;


  ActivityCreateRequest({
      this.address,
      this.aim,
      this.companyId,
      this.cost,
      this.costType,
      this.deadline,
      this.description,
      this.endTime,
      this.form,
      this.groupId,
      this.question,
      this.hasCourseFile,
      this.isOnline,
      this.limitPeople,
      this.location,
      this.logo,
      this.needcheck,
      this.notifyConfig,
      this.smallGroupId,
      this.startTime,
      this.type,
      this.userId});

  factory ActivityCreateRequest.fromJson(Map<String, dynamic> srcJson) => _$ActivityCreateRequestFromJson(srcJson);

  Map<String, dynamic> toJson() => _$ActivityCreateRequestToJson(this);

}


